/*导航栏*/
.nav-item{
    margin: 0 5px;
}
.navbar {
    position: fixed;
    top: 0;
    width: 100vw;
    height: content-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1rem;
    background: white;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    transition: all 0.2s;
}
.nav-content {
    flex-basis: 100%;
    display: flex;
    flex-grow: 1;
    justify-content: space-between;

}
.navbar-expand-md .navbar-nav {
    flex-direction: row;
}
.navbar-nav {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}
.nav-link {
    color: rgba(0,0,0,.5);
}
.nav-link:focus, .nav-link:hover {
    color: rgba(0,0,0,.7);
}
@media (min-width: 768px){
    .navbar-expand-md .navbar-nav .nav-link {
        padding-right: .5rem;
        padding-left: .5rem;
    }
}
.el-tag{
    margin-right: 20px;
}
/*头像li*/
.avatar-li{
    margin: 0 15px;
}

/*头像*/
.avatar{
    position: relative;
    cursor: pointer;
    display: inline-block;
    width: 36px;
    height: 36px;
    transition: transform 0.2s ease;
    background-size: cover;
    border-radius: 50%;
}
.avatar img{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
/*二级菜单*/
.nav .menu{
    border: 1px solid #ebeef5;
    z-index: 100;
    position: absolute;
    background: #fff;
    border-radius: 4px;
    padding: 12px;
    color: #606266;
    box-shadow: rgba(0, 0, 0, 0.2) 0 3px 6px ;
}
.avatar-menu{
    width: 280px;
    top: 45px;
    left: -121px;
}
.avatar-menu-img{
    cursor: pointer;
    position: absolute;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    top: -34px;
    left: calc(50% - 34px);
    z-index: 10000;
}
.avatar-menu-img img{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-menu-content{
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.avatar-menu-content .name{
    color: rgb(251, 114, 153);
    font-weight: 600;
    text-align: center;
    font-size: 16px;
}
.avatar-menu-content .identity{
    width: 55px;
    height: 20px;
    margin: 5px 0;
    line-height: 20px;
    text-align: center;
    background-color: #FB7299;
    color: #FFFFFF;
    font-size: 12px;
    border-radius: 2px;
}
/*头像二级菜单的按钮区域*/
.avatar-menu-content .btn-content{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.avatar-menu-content .btn-content button{
    flex: 40%;
    margin: 5px 10px;
}


/*等级信息*/
.level{
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
}
.level span{
    background-color: transparent;
    color: #000000;
}
.level-bar{
    cursor: pointer;
    width: 240px;
    height: 2px;
    background-color: #f4f4f4;
    position: relative;
    margin: 4px 0;
}
.level-progress{
    position: absolute;
    background: #f3cb85;
    border-radius: 2px;
    width: 80%;
    height: 2px;
    top: 0;
    left: 0;
}

/*退出*/
.cancel{
    position: relative;
}
.cancel button{
    cursor: pointer;
    position: relative;
    color: #fff;
    background: #FB7299;
    font-size: 14px;
    display: block;
    width: 100px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 2px;
    padding: 0;
    border: none;
    outline: none;
}
.cancel-menu{
    width: 250px;
    top: 58px;
    left: -140px;
    filter: drop-shadow(0 0 5px #ccc);
}
.cancel-menu:after{
    content: "";
    position: absolute;
    left: 75%;
    top: -8px;
    width: 15px;
    height: 15px;
    background-color: #fff;
    transform: rotate(45deg);
}
